﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InnovTech.Data.Proxy
{
    /// <summary>
    /// Describes a proxy for a object.
    /// </summary>
    public interface IObjectProxy : IProxy
    {
        /// <summary>
        /// Gets the members of the object.
        /// </summary>
        IEnumerable<IObjectMemberProxy> Members { get; }
        /// <summary>
        /// Gets or sets a member with name.
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        IObjectMemberProxy this[string name] { get; set; }
        /// <summary>
        /// Checks wether this object contains a member with the given name.
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        bool ContainsMember(string name);
    }
}
